package practice04;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice04
 * @ClassName: Test
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/10 9:46
 * @Copyright 大牛版板所有
 */
public class Test {
    public static void main(String[] args) {
        Animal a = new Eagle("小虎",3,"华南虎");
        a.eat();
        a = new Cat();
        a.eat();
        Cat c = ((Cat)a);
        c.run();
        a = new Dog("小黑",2,"黑色");
        a.eat();


    }
}
